#include "stdafx.h"
#include "Model.h"
#include "Mesh.h"
#include "Material.h"

using namespace mgfx;

Model::Model(Mesh * mesh, Material * mat)
{
	mMesh = mesh;
	mMaterial = mat;
}

Model::Model(Model & model)
{
	mMesh = model.mMesh;
	mMaterial = model.mMaterial;
}

Model & Model::operator=(Model & model)
{
	mMesh = model.mMesh;
	mMaterial = model.mMaterial;
	return *this;
}

Mesh * Model::getMesh()
{
	return mMesh;
}

Material * Model::getMaterial()
{
	return mMaterial;
}

void Model::setMesh(Mesh * mesh)
{
	mMesh = mesh;
}

void Model::setMaterial(Material * mat)
{
	mMaterial = mat;
}